DrawThemeEditTextFrame
NEW WITH THE APPEARANCE MANAGER
Draws an editable text frame consistent with the current theme.
pascal OSStatus DrawThemeEditTextFrame ( const Rect *inRect, ThemeDrawState inState);
inRect
- On input, a pointer to a rectangle.
inState
- A value specifying the state in which the editable text frame is to be drawn; see "Appearance-Compliant Draw State Constants". The frame can only be drawn as active or inactive; passing
kThemeStatePressed
will result in an error being returned.- function result
- A result code; see "Result Codes".
DISCUSSION
TheDrawThemeEditTextFrame
function draws an editable text frame (a maximum of 2 pixels thick) outside the rectangle passed in. The rectangle should be the same as the one passed in the functionDrawThemeFocusRect
, so you can get the correct focus look for your editable text control. You should not use these frames for items other than editable text fields.SEE ALSO
"Control Guidelines" in Mac OS 8 Human Interface Guidelines.